package com.ct;

import org.mapstruct.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
 * 1,想远程调用服务
 *   1,引入openFeign
 *   2,编写一个接口，告诉cloud需要调用远程服务
 *   3,在接口声明每一个方法调用的都是哪一个服务的哪一个控制器，控制器要写全名
 *   4,开启远程调用@EnableFeignClients
 *   5,
 * */
@EnableFeignClients(basePackages = "com.ct.member.feign")
@SpringBootApplication
@MapperScan("com.ct.member.dao")
@EnableDiscoveryClient
public class GMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GMemberApplication.class, args);
    }

}
